home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 April / PCWorld_2007-04_cd.bin / v cisle / mscompatible / FileFormatConverters.exe / 0 / RCDATA / SCRIPT (.txt)
Null Bytes Alternating  |  2007-03-06  |  16KB  |  257 lines

  1. <?xml version="1.0"?>
  2. <OPatchInstall version="1.0">
  3.     <Action type="If">
  4.         <Condition>
  5.             <Equal property="SYS.ARGS.HELP" toValue="1"/>
  6.         </Condition>
  7.         <IfTrue>
  8.             <Action type="Prompt">
  9.                 <Title>Compatibility Pack for the 2007 Office system</Title>
  10.                 <Text>Usage:
  11. /extract:path, extracts the content of the package to the path folder
  12. /quiet, runs the package in silent mode
  13. /?, shows this help message</Text>
  14.             </Action>
  15.             <Action type="Quit"/>
  16.         </IfTrue>
  17.     </Action>
  18.     <Action type="If">
  19.         <Condition>
  20.             <Or>
  21.                 <VersionComparison property="SYS.WIN.VER" toValue="502" comparison="HigherEqual"/>
  22.                 <And>
  23.                     <VersionComparison property="SYS.WIN.VER" toValue="501" comparison="HigherEqual"/>
  24.                     <VersionComparison property="SYS.WIN.SPLEVEL" toValue="100" comparison="HigherEqual"/>
  25.                 </And>
  26.                 <And>
  27.                     <VersionComparison property="SYS.WIN.VER" toValue="500" comparison="HigherEqual"/>
  28.                     <VersionComparison property="SYS.WIN.SPLEVEL" toValue="400" comparison="HigherEqual"/>
  29.                 </And>
  30.             </Or>
  31.         </Condition>
  32.         <IfFalse>
  33.             <Action type="Prompt">
  34.                 <Title>Compatibility Pack for the 2007 Office system</Title>
  35.                 <Text>Compatibility Pack for the 2007 Office system cannot be installed on this computer. The compatibility pack requires Microsoft Windows 2000 Service Pack 4, Microsoft Windows Server 2003, or Microsoft Windows XP Service Pack 1.</Text>
  36.             </Action>
  37.             <Action type="Quit"/>
  38.         </IfFalse>
  39.     </Action>
  40.     <Action type="If">
  41.         <Condition>
  42.             <Equal property="SYS.ARGS.PASSIVE" toValue="1"/>
  43.         </Condition>
  44.         <IfFalse>
  45.             <Action type="CreateTempFolder">
  46.                 <Path>PATCH.EULAFOLDER</Path>
  47.             </Action>
  48.             <Action type="ExtractFile">
  49.                 <Id>EULA</Id>
  50.                 <To>$(PATCH.EULAFOLDER)\eula.txt</To>
  51.             </Action>
  52.             <Action type="PromptEULA">
  53.                 <Title>Compatibility Pack for the 2007 Office system</Title>
  54.                 <Continue>&Continue</Continue>
  55.                 <CheckBox>Click here to &accept the Microsoft Software License Terms.</CheckBox>
  56.                 <Message>You must accept the Microsoft Software License Terms in order to continue the installation.</Message>
  57.                 <CancelConfirmation>Are you sure you want to cancel setup?</CancelConfirmation>
  58.                 <EULA>$(PATCH.EULAFOLDER)\eula.txt</EULA>
  59.                 <Button type="Cancel">
  60.                     <Action type="Quit"/>
  61.                 </Button>
  62.             </Action>
  63.         </IfFalse>
  64.     </Action>
  65.     <Action type="If">
  66.         <Condition>
  67.             <Equal property="SYS.ARGS.EXTRACT" toValue="1"/>
  68.         </Condition>
  69.         <IfTrue>
  70.             <Action type="SetProperty">
  71.                 <Property>PATCH.CANCELLED</Property>
  72.                 <Value>0</Value>
  73.             </Action>
  74.             <Action type="If">
  75.                 <Condition>
  76.                     <Equal property="SYS.ARGS.EXTRACTPATH" toValue="NONE"/>
  77.                 </Condition>
  78.                 <IfTrue>
  79.                     <Action type="PromptFolder">
  80.                         <Title>Select a folder to store the extracted files</Title>
  81.                         <Property>PATCH.EXTRACTPATH</Property>
  82.                         <WasCancelled>PATCH.CANCELLED</WasCancelled>
  83.                     </Action>
  84.                     <Action type="If">
  85.                         <Condition>
  86.                             <Equal property="PATCH.CANCELLED" toValue="1"/>
  87.                         </Condition>
  88.                         <IfTrue>
  89.                             <Action type="Quit"/>
  90.                         </IfTrue>
  91.                     </Action>
  92.                 </IfTrue>
  93.                 <IfFalse>
  94.                     <Action type="SetProperty">
  95.                         <Property>PATCH.EXTRACTPATH</Property>
  96.                         <Value>$(SYS.ARGS.EXTRACTPATH)</Value>
  97.                     </Action>
  98.                 </IfFalse>
  99.             </Action>
  100.         </IfTrue>
  101.         <IfFalse>
  102.             <Action type="GetStandardFolder">
  103.                 <CSIDL>38</CSIDL>
  104.                 <Property>PATCH.EXTRACTPATH</Property>
  105.             </Action>
  106.             <Action type="SetProperty">
  107.                 <Property>PATCH.EXTRACTPATH</Property>
  108.                 <Value>$(PATCH.EXTRACTPATH)\MSECache\O2007Cnv\1033</Value>
  109.             </Action>
  110.             <Action type="CreateFolder">
  111.                 <Path>$(PATCH.EXTRACTPATH)</Path>
  112.             </Action>
  113.             <Action type="If">
  114.                 <Condition>
  115.                     <Equal property="SYS.ERROR.INERROR" toValue="1"/>
  116.                 </Condition>
  117.                 <IfTrue>
  118.                     <Action type="Prompt">
  119.                         <Title>Compatibility Pack for the 2007 Office system</Title>
  120.                         <Text>The installation of this package failed.</Text>
  121.                     </Action>
  122.                     <Action type="Quit"/>
  123.                 </IfTrue>
  124.             </Action>
  125.         </IfFalse>
  126.     </Action>
  127.     <Action type="QueueExtractFile">
  128.         <Id>EULA</Id>
  129.         <To>$(PATCH.EXTRACTPATH)\eula.txt</To>
  130.     </Action>
  131.     <Action type="QueueExtractFile">
  132.         <Id>eula.txt</Id>
  133.         <To>$(PATCH.EXTRACTPATH)\eula.txt</To>
  134.     </Action>
  135.     <Action type="QueueExtractFile">
  136.         <Id>O12Conv.cab</Id>
  137.         <To>$(PATCH.EXTRACTPATH)\O12Conv.cab</To>
  138.     </Action>
  139.     <Action type="QueueExtractFile">
  140.         <Id>O12Conv.msi</Id>
  141.         <To>$(PATCH.EXTRACTPATH)\O12Conv.msi</To>
  142.     </Action>
  143.     <Action type="QueueExtractFile">
  144.         <Id>README.HTM</Id>
  145.         <To>$(PATCH.EXTRACTPATH)\README.HTM</To>
  146.     </Action>
  147.     <Action type="QueueExtractFile">
  148.         <Id>files12.cat</Id>
  149.         <To>$(PATCH.EXTRACTPATH)\Catalog\files12.cat</To>
  150.     </Action>
  151.     <Action type="SetProperty">
  152.         <Property>PATCH.CANCELLED</Property>
  153.         <Value>0</Value>
  154.     </Action>
  155.     <Action type="ExtractQueuedFiles">
  156.         <Cancel>&Cancel</Cancel>
  157.         <Operation>Extracting files, please wait...</Operation>
  158.         <Title>Compatibility Pack for the 2007 Office system</Title>
  159.         <WasCancelled>PATCH.CANCELLED</WasCancelled>
  160.     </Action>
  161.     <Action type="If">
  162.         <Condition>
  163.             <Equal property="SYS.ERROR.INERROR" toValue="1"/>
  164.         </Condition>
  165.         <IfTrue>
  166.             <Action type="Prompt">
  167.                 <Title>Compatibility Pack for the 2007 Office system</Title>
  168.                 <Text>The installation of this package failed.</Text>
  169.             </Action>
  170.             <Action type="Quit"/>
  171.         </IfTrue>
  172.     </Action>
  173.     <Action type="If">
  174.         <Condition>
  175.             <Equal property="PATCH.CANCELLED" toValue="1"/>
  176.         </Condition>
  177.         <IfTrue>
  178.             <Action type="Quit"/>
  179.         </IfTrue>
  180.     </Action>
  181.     <Action type="If">
  182.         <Condition>
  183.             <Equal property="SYS.ARGS.EXTRACT" toValue="1"/>
  184.         </Condition>
  185.         <IfTrue>
  186.             <Action type="Prompt">
  187.                 <Title>Compatibility Pack for the 2007 Office system</Title>
  188.                 <Text>Files extracted successfully.</Text>
  189.             </Action>
  190.             <Action type="Quit"/>
  191.         </IfTrue>
  192.     </Action>
  193.     <Action type="CreateTempFile">
  194.         <Path>PATCH.MSILOG</Path>
  195.         <BaseName>Compatibility Pack for the 2007 Office system</BaseName>
  196.         <Extension>log</Extension>
  197.     </Action>
  198.     <Action type="SetProperty">
  199.         <Property>PATCH.MSILOG</Property>
  200.         <Value> /l*v+ "$(PATCH.MSILOG)"</Value>
  201.     </Action>
  202.     <Action type="If">
  203.         <Condition>
  204.             <Equal property="SYS.ARGS.QUIET" toValue="1"/>
  205.         </Condition>
  206.         <IfTrue>
  207.             <Action type="Execute">
  208.                 <CommandLine>msiexec.exe /i "o12conv.msi" /qn $(PATCH.MSILOG)</CommandLine>
  209.                 <LaunchDirectory>$(PATCH.EXTRACTPATH)</LaunchDirectory>
  210.                 <Property>PATCH.LAUNCHEXITCODE</Property>
  211.             </Action>
  212.         </IfTrue>
  213.         <IfFalse>
  214.             <Action type="If">
  215.                 <Condition>
  216.                     <Equal property="SYS.ARGS.PASSIVE" toValue="1"/>
  217.                 </Condition>
  218.                 <IfTrue>
  219.                     <Action type="SetProperty">
  220.                         <Property>PATCH.PASSIVECOMMAND</Property>
  221.                         <Value>/qb! REBOOTPROMPT=S</Value>
  222.                     </Action>
  223.                 </IfTrue>
  224.             </Action>
  225.             <Action type="Execute">
  226.                 <CommandLine>msiexec.exe /i "o12conv.msi" $(PATCH.MSILOG) $(PATCH.PASSIVECOMMAND)</CommandLine>
  227.                 <LaunchDirectory>$(PATCH.EXTRACTPATH)</LaunchDirectory>
  228.                 <Property>PATCH.LAUNCHEXITCODE</Property>
  229.             </Action>
  230.         </IfFalse>
  231.     </Action>
  232.     <Action type="If">
  233.         <Condition>
  234.             <Equal property="PATCH.LAUNCHEXITCODE" toValue="1602"/>
  235.         </Condition>
  236.         <IfTrue>
  237.             <Action type="Quit"/>
  238.         </IfTrue>
  239.     </Action>
  240.     <Action type="If">
  241.         <Condition>
  242.             <Equal property="PATCH.LAUNCHEXITCODE" toValue="0"/>
  243.         </Condition>
  244.         <IfFalse>
  245.             <Action type="Prompt">
  246.                 <Title>Compatibility Pack for the 2007 Office system</Title>
  247.                 <Text>The installation of this package failed.</Text>
  248.             </Action>
  249.             <Action type="Quit"/>
  250.         </IfFalse>
  251.     </Action>
  252.     <Action type="Prompt">
  253.         <Title>Compatibility Pack for the 2007 Office system</Title>
  254.         <Text>The installation is complete.</Text>
  255.     </Action>
  256. </OPatchInstall>
  257.